﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ApprovalCondition.aspx.cs" Inherits="SystemMangement_ApprovFlow_ApprovalCondition" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>审批条件编辑</title>
     <link href="../../Includes/Guide.css" type="text/css" rel="stylesheet" />
    <link href="../../Includes/index.css" type="text/css" rel="stylesheet" />
    <link href="../../Includes/MasterPage.css" type="text/css" rel="stylesheet" />
    <link href="../../Includes/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../../css/MyCss.css" type="text/css" rel="stylesheet" />
    <link href="../../css/Style.css" rel="stylesheet" type="text/css" />
</head>
<script src="../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="../../Includes/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../../Includes/MyJScript.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">

    //显示repeater行数
    function display(space) {
        var lineNum = document.getElementById("HiddenField1").value;

        lineNum = space * 1 + lineNum * 1;

        var items = document.getElementsByTagName("div");
        var num = 0;
        for (var i = 0; i < items.length; i++) {
            if (items[i].title == "detail") {
                if (num < lineNum) {
                    items[i].style.display = "block";
                }
                else {
                    items[i].style.display = "none";
                }
                num++;
            }
        }
        document.getElementById("HiddenField1").value = lineNum;
    }
    //错误提示
    function chkLogin() {
        alert("错误：未检测到登录信息，请进行登录！");
        window.navigate("../Login.aspx");
    }
    //关闭当前窗口
    function winCancel() {
        parent.PE_FrameTab.CloseCurrentTab();
    }

</script>

<body>
    <form id="form1" runat="server">
     <div class="inputbuttondiv">
<asp:Button ID="btnSave" runat="server" Text="保存"  CssClass="inputbutton" 
             />
<asp:Button ID="btnUpd" runat="server" Text="修改"  CssClass="inputbutton" 
            />
                    <asp:Button ID="btnCancel" runat="server" Text="取消" CssClass="inputbutton"  OnClientClick="winCancel()"/>
    </div>
    
    <div>
        <table class="item" style="margin:0px 0px 0px 0px; width:520px">
            <tr>
                <td class="tdbg" style=" width:125px">系统编码:</td>
                <td>
                    <asp:TextBox ID="txtsysno" runat="server" CssClass="inputtext"></asp:TextBox>
                </td>
                <td class="tdbg" style=" width:125px">流程名称:</td>
                <td>
                    <asp:TextBox ID="txtapprovName" runat="server" CssClass="inputtext"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tdbg" style=" width:125px">业务对象:</td>
                <td>
                    <asp:DropDownList ID="ddlopNo" runat="server" Width="130px" AppendDataBoundItems="true">
                        <asp:ListItem Value="-1">-选择-</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="tdbg" style=" width:125px">定义行号:</td>
                <td>
                    <asp:TextBox ID="txtfillPsn" runat="server" CssClass="inputtext"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="tdbg" style=" width:125px">定义顺序号:</td>
                <td>
                    <asp:TextBox ID="txtsysno0" runat="server" CssClass="inputtext"></asp:TextBox>
                </td>
                <td class="tdbg" style=" width:125px">&nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            </table>
    </div>
     <asp:Panel ID="Panel1" runat="server" Height="300px" ScrollBars="Both" Width="520px">
        <table style="width:500px; background-color:White">
            <tr>
                <td align="center" style="width:50px">
                    左括号</td>
                 <td align="center" style="width:100px">
                     条件
                </td>
                <%-- <td align="center" style="width:100px">
                    审批人
                </td>--%>
                 <td align="center" style="width:60px">
                     运算符
                </td>
                 <td align="center" style="width:100px">
                     值</td>
                 <td align="center" style="width:50px; text-align: left;">
                     右括号</td>
                 <td align="center" style="width:80px">
                     逻辑运算符</td>
               
            </tr>
        </table>
        
        <asp:Repeater ID="Repeater1" runat="server">
         <ItemTemplate>
                    <div id="h" style="display: block; padding-left: 0px; padding-right: 0px;" runat="server" name="h" title="detail">
                        <table  cellpadding="0px" cellspacing="0px" style=" width: 500px; background-color:White" border="1">
                        <tr>
                        <td><asp:Label  ID="lbllineid" width="50px" runat="server" Text='<%# Eval("lineId") %>' CssClass="inputtext"></asp:Label></td>
                        <td>
                            <asp:TextBox ID="txtordNo" width="100px" runat="server" Text='<%# Eval("ordNo") %>'  CssClass="inputtext"></asp:TextBox></td>
                       <%-- <td>
                            <asp:TextBox ID="txtapprovpsn" width="100px" runat="server" ></asp:TextBox></td>--%>
                        <td>
                            <asp:TextBox ID="txtapprovPost" width="60px" runat="server" Text='<%# Eval("rolename") %>'  CssClass="inputtext"></asp:TextBox></td>
                        <td>
                            <asp:CheckBox ID="chkisSuPost" runat="server" Width="100px" Checked='<%#  Convert.ToInt32(Eval("isSuPost"))==1?true:false %>' onclick="onchkisSuPost(this)"/></td>
                         <td>
                            <asp:TextBox ID="txtapprovPercent" style="width:50px" runat="server" Text='<%# Eval("approvPercent")%>'  CssClass="inputtext"></asp:TextBox></td>
                        <td>
                            <asp:TextBox ID="txtremarks" style="width:80px" runat="server" Text='<%# Eval("remarks") %>'  CssClass="inputtext"></asp:TextBox></td>
                       
                            <td style="width: 0px">
<%--                            <asp:TextBox ID="txtapprovPostNo" width="0" runat="server" BorderWidth="0px" Text='<%# Eval("approvPost") %>'></asp:TextBox>--%>
                            <asp:HiddenField ID="txtapprovPostNo" runat="server" Value='<%# Eval("approvPost") %>' /></td>
                        </tr>
                        </table>
                        </div>
                        </ItemTemplate>
        </asp:Repeater>
        </asp:Panel>
    </form>
</body>
</html>
